package models

import "time"

// 角色
type Role struct {
	Id          int64     `xorm:"pk autoincr" json:"roleId"`
	Name        string    `xorm:"comment('角色名称')" json:"roleName"`
	Authorities string    `xorm:"text comment('角色权限，逗号隔开的字符串')" json:"authorities"`
	Created     time.Time `xorm:"created comment('创建时间')" json:"-"`
	Deleted     time.Time `xorm:"deleted comment('删除时间')" json:"-"`
	RoleCreated string    `xorm:"-" json:"roleCreated"`
}
